
<%@page import="ejb.Videogame"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.util.ListIterator"%>
<%@page import="java.util.Iterator"%>
<%@page import="javax.ejb.EJB"%>
<%@page import="java.util.List"%>
<%@page import="ejb.GestoreArticoloBeanLocal"%>
<%@page import="ejb.Utente"%>
<%@page import="ejb.ArticoloNuovo"%>
<%@page import="ejb.ArticoloUsato"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@include file="wrapper.jsp" %>

<div class="container">
<div class="row-fluid">

<div class="span12">
<div class="span8">

<div class="thumbnail">

    <div id="content">
    <center>
        <div id="cornice">
            <h2>Modifica Articolo Nuovo</h2>
               <form action="Controller" method="POST">
               <%
               ArticoloNuovo a = (ArticoloNuovo)request.getAttribute("articoloEdit");
               %>
               <input type="hidden" name="id" readonly="readonly" value="<%=a.getId()%>"><br />
               Nome: <input type="text" name="nome" value="<%=a.getNome()%>"><br />        
               Descrizione generale: <input type="text" name="descrizione" value="<%=a.getDescrizioneGenerale()%>"><br />
               Disponibilita: <input type="text" name="disponibilita" value="<%=a.getDisponibilita()%>"><br /> 
               Prezzo: <input type="text" name="prezzo" value="<%=a.getPrezzo()%>"><br />
               Sconti: <input type="text" name="sconti" value="<%=a.getSconti()%>"><br /><br />
               Path immagine: <input type="text" name="pathImmagine"><br /><br />
               Videogame: <select name="idVideogame"><br>
                <%
                String idVid;
                List<Videogame> videogames = (List<Videogame>)session.getAttribute("videogames");
                                         
                for(Videogame v:videogames) {
                    idVid =v.getId().toString();
                %>
                <option  value="<%=idVid%>"><%=v.getNome()%></OPTION><% }%>
                </select>
    
                       <input type="submit" value="editArtNuovo" name="button" />   
               </form>
    
         </div>
    </center>
   </div><br><br>
</div> 
</div>
<iframe src="https://www.google.com/calendar/embed?src=f7ni105q3cfp27s1t374amoqug%40group.calendar.google.com&ctz=Europe/Rome" style="border: 0" width="320" height="240" frameborder="0" scrolling="no" align="right">></iframe>
</div>
</div>
</div>
</body>
</html>

 